package com.bitdf.txing.users.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.bitdf.txing.common.entity.BaseEntity;
import com.bitdf.txing.common.valid.SaveGroup;
import com.lemon.util.anno.MysqlColumn;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @author Lizhiwei
 * @date 2023/8/30 19:36:49
 * 注释：用户权限实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tx_ums_user_permission")
public class UserPermissionEntity extends BaseEntity {
    /**
     * 权限名
     */
    @MysqlColumn(comment = "权限名")
    @NotNull(groups = SaveGroup.class)
    private String name;

    /**
     * 权限说明
     */
    @MysqlColumn(comment = "说明")
    @NotNull(groups = SaveGroup.class)
    private String description;
}
